package com.suning.app.snpaasadmin.operation;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.suning.app.snpaasadmin.dao.CfRuntimeMapper;
import com.suning.app.snpaasadmin.pojo.CfRuntime;
import com.suning.app.snpaasadmin.pojo.CfRuntimeExample;

public class CfRuntimeDBOperation {
	public List<CfRuntime> getRuntimeList() {
		SqlSession sqlSession = FactoryBase.getSession().openSession();
		CfRuntimeMapper runMapper = sqlSession.getMapper(CfRuntimeMapper.class);
		
		CfRuntimeExample runEx = new CfRuntimeExample();
		runEx.createCriteria();
		List<CfRuntime> runtimeList = runMapper.selectByExample(runEx);
		
		sqlSession.close();
		return runtimeList;
	}

}
